package com.hospital.service;

import com.hospital.mapper.DoctorMapper;
import com.hospital.pojo.Doctor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DoctorServiceImpl implements DoctorService{
    @Autowired
    private DoctorMapper doctorMapper;
    @Override
    public List<Doctor> findAll() {
        return doctorMapper.selectList(null);
    }

    @Override
    public void updateUser(Doctor doctor) {
        doctorMapper.updateById(doctor);
    }

    @Override
    public void deleteUserById(Integer id) {
        doctorMapper.deleteById(id);
    }

    @Override
    public boolean chackuser(Doctor doctor) {

        return false;
    }

}
